package com.sina.interfaces.manage.service.user;

import com.sina.interfaces.core.BaseService;
import com.sina.interfaces.core.exception.client.DataException;
import com.sina.interfaces.core.exception.server.CreateException;
import com.sina.interfaces.core.exception.server.ResourceExistsException;
import com.sina.interfaces.core.exception.server.UpdateException;
import com.sina.interfaces.domain.user.User;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2017-11-14-13:04
 */
public interface UserManageService extends BaseService {

    User getUser(String name);

    int delete(Long id) throws DataException, UpdateException;

    User updateUser(User user) throws DataException, UpdateException;

    User saveUser(User user) throws CreateException, ResourceExistsException, DataException;

    List<Map<String, Object>> getUserList(User user, Long count[]);
}
